package com.climb.spingcloud.feign;

import com.climb.spingcloud.base.R;
import com.climb.spingcloud.dto.ProductDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Administrator-NANA
 * @date 2021-07-29 19:37:16
 * @description
 */
//参数是Nacos中注册的服务名
@FeignClient(name = "shop-product-service-wjv")
public interface RemoteProductService {
    @GetMapping(value = "/products/{id}")
    R<ProductDto> getById(@PathVariable("id") Long productId);
}
